<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{$pageTitle}}-{{$current_wxinfo['Wx']['name']}}</title>
<meta NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<meta name="Keywords" content="{{if $seokeywords}}{{$seokeywords}}{{else}}{{$site[seokeywords]}}{{/if}}" />
<meta name="Description" content="{{if $seodescription}}{{$seodescription}}{{else}}{{$site[seodescription]}}{{/if}}" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
{{$this->Html->meta('icon')}}
<?PHP echo $this->Combinator->less(2); ?>
{{$this->Html->css(array(
    '//static.135editor.com/css/font-awesome.min.css',
    '//static.135editor.com/css/jquery.jgrowl.css',
    '//static.135editor.com/css/ui-customer.css',
    '//static.135editor.com/css/mobile.css'));}}
<script type="text/javascript">
var BASEURL = "{{APP_SUB_DIR}}";
var ADMIN_BASEURL = BASEURL+"/manage";
</script>
{{$this->Html->script(array(
            'jquery/jquery.min.js',
            'jquery/jquery.cookie.js',        
            'i18n/language-zh-cn.js',
            'bootstrap.min.js','jquery/jquery.lazyload.js',
            'jquery/jquery.jgrowl.min.js',
            'common.js','front.js',            
        ));
}}


<script type="text/javascript">
message_positon = 'center';
</script>
</head>
<body>

<div id="maincontent" class="maincontent clearfix">	
    {{$content_for_layout}}
    <div id="pageTitle" style="display:none;">{{$pageTitle}}-{{$current_wxinfo['Wx']['name']}}</div>
</div><!-- //end maincontent -->
<!--
{{if $current_wxinfo && $show_wx_menu }}
	<nav class="navbar-collapse bs-navbar-collapse navbar-fixed-bottom" style="background:#eee;padding:0 2px;" role="navigation">
	<?php 
	
	$wx_id = $current_wxinfo['Wx']['id'];
		if(empty($top_category_id)) $top_category_id=0;
	echo $this->Section->getNavMenu('WxMenu',
		array(
'conditions' => array(
	'wx_id' => $wx_id,
	'group' => 1,
),
			'ulAttributes'=>array('class'=>'nav navbar-nav'),
                        'defaultClass'=>'ui-state-default',
			'preli'=>'',
			'sufli'=>'',
			'separator' => '',
			'fullwidth' => true,
			'inner_separator' => '',
			'maxdepth' => 2,
		));
	?>
	
    </nav>
{{/if}} -->
{{$this->fetch('bottomscript')}}

{{$this->Html->script(array(
          'jquery/jquery.lazyload.js',
    ));
}}
<script type="text/javascript">


	$(document).ready(function() {
		var last_url = null;		
		//establish history variables
		/*var	History = window.History, // Note: We are using a capital H instead of a lower h
			State = History.getState();		
		//bind to State Change. 'jquery/jquery.history.js',
		History.Adapter.bind(window,'statechange',function(){ // Note: We are using statechange instead of popstate
			var State = History.getState(); // Note: We are using History.getState() instead of event.state
			
			$('body').css('overflowY','hidden');
			$('#maincontent').append('<div id="loading"><div id="loading-text"><img src="{{$this->Html->image('/img/ajax/circle_ball.gif',array('onlyurl'=>true))}}"> &nbsp; Loading...</div></div>');
			
			if(last_url == State.url){				
				return false;//防止重复加载同一内容
			}
			last_url = State.url;
			$.ajax({
				url:State.url,
				cache:true,
				success:function(msg){
					$('#loading').remove();						
					$('body').css('overflowY','auto').scrollTop(0);
					$('#maincontent').html(msg);
					$('#maincontent').fadeIn();
					document.title = $('#pageTitle').html();
					
					//$('#eng-link').attr('href',$('#current-url').attr('href'));
					//$('#chi-link').attr('href','/zh-cn'+$('#current-url').attr('href'));
					//$('#zhtw-link').attr('href','/zh-tw'+$('#current-url').attr('href'));
					
					$("img.lazy").lazyload({placeholder : "{{$this->Html->image('/img/grey.gif',array('onlyurl'=>true))}}",effect: "fadeIn",threshold : 200});
				}
			});
		});
		
		$(document).on('click','a',function(e){
			
			if(this.href.match(/#/) || $(this).hasClass('noajax') || this.href.indexOf('javascript')>=0 || typeof($(this).attr('onclick'))!='undefined' || (typeof($(this).attr('target'))!='undefined' && $(this).attr('target')!='_self')){ 
				return true;
			}
			
			e.preventDefault();
			e.stopPropagation();
			//$(document).scrollTop(0);
			/*setTimeout(function(){
				$('#loading').remove();
			},2000);
			History.pushState(null, null, $(this).attr('href'));
			return false;
		})*/
		
		$("img.lazy").lazyload({placeholder : "{{$this->Html->image('/img/grey.gif',array('onlyurl'=>true))}}",effect: "fadeIn",data_attribute: "src",threshold : 200,failure_limit:50});
        setTimeout(function(){$(window).trigger('scroll');},1000);
	});
</script>
{{if $current_data_id}}
<script src="/stats_days/numlog/{{$current_model}}/{{$current_data_id}}/view"></script>
{{/if}}
</body>
</html>
